function formatDate(now) {
    let date = new Date(now)
    let y = date.getFullYear()
    let m = date.getMonth() + 1
    let d = date.getDate()
    let arr = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
    let day = date.getDay()

    let hh = date.getHours()
    let mm = date.getMinutes()
    let ss = date.getSeconds()

    let ymd = [y, m, d].map(v => v < 10 ? '0' + v : v).join("-")

    let hms = [hh, mm, ss].map(v => v < 10 ? '0' + v : v).join(":")
    let t = `${ymd} ${hms} ${arr[day]}`

    console.log(t);
}

formatDate(1685769303999)